import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Home from '../views/Home.vue'
import Register from '../views/Register.vue'
import Info from '../views/Info.vue'
import Car from '../views/Car.vue'
import Fdj from '../views/fdj.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/Login'
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login
  },
  {
    path: '/Register',
    name: 'Register',
    component: Register
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/info/:id',
    name: 'Info',
    component: Info
  },
  {
    path: '/Car',
    name: 'Car',
    component: Car
  },
  {
    path: '/fdj',
    name: 'fdj',
    component: Fdj
  }
]

const router = new VueRouter({
  routes
})

export default router
